package com.zp.self.module.level_1_问道.III_多线程.JUC;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/8/23 22:57
 * @description ：
 */
public class ReenTrantReadWriteLock分析 {
    public static void main(String[] args) throws InterruptedException {
        ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
        Lock readLock = lock.readLock();
        Lock writeLock = lock.writeLock();
        readLock.lock();
        writeLock.lock();
    }
}
